package com.mes.service.jy;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.jy.GotempkuMapper;
import com.mes.entity.hy.Work;
import com.mes.entity.jy.Gotempku;
import com.mes.entity.jy.Gpk;
import com.mes.entity.jy.Queryjy;
import com.mes.entity.jy.Tempproduct;

/**
 * 产品入库servise层实现类
 * @ClassName: GotempkuServiseImpl 
 * @Description:
 * @Author jy
 * @Date 2018年1月26日 下午3:35:12 
 * @version 1.0
 */
@Service
@Transactional
public class GotempkuServiseImpl implements GotempkuServise {

	@Resource
	private GotempkuMapper gotempkuMapper;

	@Override
	public int createGotempku(Gotempku gotempku) {
		return gotempkuMapper.createGotempku(gotempku);
	}

	@Override
	public int getTotal(Queryjy queryjy) {
		return gotempkuMapper.getTotal(queryjy);
	}

	@Override
	public List<Gotempku> selectGotempkuPagein(Queryjy queryjy) {
		return gotempkuMapper.selectGotempkuPagein(queryjy);
	}

	@Override
	public int createGpk(Gpk gpk) {
		return gotempkuMapper.createGpk(gpk);
	}

	@Override
	public int createTempProduct(Tempproduct tempproduct) {
		return gotempkuMapper.createTempProduct(tempproduct);
	}

	@Override
	public int getTotalGpk(Queryjy queryjy) {
		return gotempkuMapper.getTotalGpk(queryjy);
	}

	@Override
	public List<Gotempku> selectGpkPagein(Queryjy queryjy) {
		return gotempkuMapper.selectGpkPagein(queryjy);
	}

	/**
	 * 根据条码查询线边产品库库存（暂未实现）
	 */
	@Override
	public Gotempku selectCodeExist(String code) {
		return null;
	}

	@Override
	public Work selectAllwByid(String workid) {
		return gotempkuMapper.selectAllwByid(workid);
	}

	@Override
	public void editAllwState(String id) {
		gotempkuMapper.editAllwState(id);
	}

	@Override
	public void editAllwState2(String id) {
		 gotempkuMapper.editAllwState2(id);
	}

	@Override
	public void editAllwR5(Work work) {
		gotempkuMapper.editAllwR5(work);
	}

	@Override
	public void editAllwR6(Work work) {
		gotempkuMapper.editAllwR6(work);
	}
}
